package com.hui.auth.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 系统用户
 * Created by LiaoYunHui on 2017/9/23/023.
 */
public class AuthMenu implements Entity, Serializable {
    @Ignore
    private static final long serialVersionUID = -5809782578272943991L;
    @Ignore
    private Long id;
    private Long pid;
    private String icon;
    private String url;
    private String title;
    private Long sort;
    private List<AuthMenu> subMenu;

    public Long getId() {
        return id;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<AuthMenu> getSubMenu() {
        return subMenu;
    }

    public void setSubMenu(List<AuthMenu> subMenu) {
        this.subMenu = subMenu;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "AuthMenu{" +
                "id=" + id +
                ", pid=" + pid +
                ", icon='" + icon + '\'' +
                ", url='" + url + '\'' +
                ", title='" + title + '\'' +
                ", sort=" + sort +
                ", subMenu=" + subMenu +
                '}';
    }

    @Override
    public String table() {
        return "auth_menu";
    }
}
